package com.zj.study.pojo.query;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 清分结算
 *
 * @author 谭耀飞
 * @since 2021.07.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName(value = "pay_settlement_record", autoResultMap = true)
public class PaySettlementRecord extends Model<PaySettlementRecord> {

  /**
   * 记录 ID
   */
  @TableId(value = "rid", type = IdType.ASSIGN_ID)
  private Long rid;

  /**
   * 组织结构编码
   */
  @TableField("org_code")
  private String orgCode;

  /**
   * 文件链接
   */
  @TableField(value = "file_urls")
  private List<String> fileUrls;

  /**
   * 结算日期
   */
  @TableField("settle_date")
  private LocalDate settleDate;

  /**
   * 创建时间
   */
  @TableField(value = "created_time", fill = FieldFill.INSERT)
  private LocalDateTime createdTime;

  /**
   * 更新时间
   */
  @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
  private LocalDateTime updatedTime;

}
